Skip to content

chore(orchestration): rule 57 within-WI fan-out + ANDROID_SERIAL routing + android lease - #2015

Open
lllyys wants to merge 2 commits into
mainfrom
chore/orchestration-fanout-rule57-android-serial
Open

chore(orchestration): rule 57 within-WI fan-out + ANDROID_SERIAL routing + android lease#2015
lllyys wants to merge 2 commits into
mainfrom
chore/orchestration-fanout-rule57-android-serial

Conversation

@lllyys

@lllyys lllyys commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Orchestration follow-ups from the "why so few subagents?" analysis (post-#138)

Three additive changes — no redesign of /dispatch (the grilled diagnosis: lane-level low fan-out was structurally forced by the N=1 degrade + single-emulator serialization; the movable margin is within-WI analytical work).

1. NEW rule 57 — ultracode within-WI analytical fan-out

Parallel context sweep + pre-write adversarial "how could this false-green?" brainstorm + deep+broad post-write audit in parallel. Write + reconcile stay solo; the reconcile now requires a written rationale per accepted/deflected finding (the step that leaked WI-6's targets-vs-ceilings defect). Pre-write discoverability is framed as an instrumented hypothesis justified on cost asymmetry — not a claimed counterfactual save. Named follow-ups: mechanize the logged-vs-asserted check; per-lens falsification discipline.

2. rule 48 — honest pricing for analytical fan-out

Read-only analytical spawns price differently than worktree lanes (no setup/conflict/resource when overlapping the serial critical section or preceding the write) → net-positive in expectation at N=1 under ultracode, with the residual costs named (reconcile tax, infra failure, context dilution).

3. ANDROID_SERIAL routing + android emulator lease

run-android-tests.sh: validate + export ANDROID_SERIAL, ambiguity guard counting ALL online devices (emulator + physical). sim-lease.sh acquire android: leases an online emulator serial (capacity = online count, race-safe under the existing select mutex, no silent set -e exit). Rules 52/55 + dispatch/feature-workflow skills synced end-to-end (lease-by-platform, serial in briefs/test-gates/re-runs/cleanup). A 2nd AVD now unlocks width-2 Android dispatch. Self-tests extended (10 routing + 6 lease cases) — ALL PASS.

Audit trail

  • Codex gpt-5.5/high, 3 rounds (block → fixed skill wiring / physical-device ambiguity / set-e exit; → fixed rule-55 brief template; → fixed lease-release wording + routing summary). 3-round cap reached — the residual escalation is this PR review.
  • 3-lens adversarial workflow: fix-before-merge → fixed.
  • Full 5-angle reason-grill of the rationale: verdict HOLDS-IF-NARROWED → all surviving over-claims corrected in the rule text before this PR (hindsight counterfactual → hypothesis; "~zero wall-clock" → in-expectation; "ONLY real gaps" → "gaps this session exposed").

Meta-process change (no bug/feature row). Version bumped 3.67.7 → 3.67.8.

Do not merge yet — held for review per operator instruction.

lllyys added 2 commits July 23, 2026 21:41
…ing + android lease

Post-#138 orchestration follow-ups (the 'why so few subagents' analysis, grilled):

- NEW rule 57 (ultracode within-WI analytical fan-out): parallel context sweep +
  pre-write adversarial 'false-green' brainstorm (cost-asymmetry-justified,
  instrumented hypothesis) + deep+broad post-write audit in parallel; write +
  reconcile stay solo (reconcile now requires written rationale per accepted
  finding - the step that leaked WI-6's targets-vs-ceilings defect); named
  follow-ups: mechanize logged-vs-asserted check, lens falsification discipline.
- rule 48: analytical fan-out prices differently than worktree lanes (no setup/
  conflict/resource when overlapping or pre-write; net-positive IN EXPECTATION
  at N=1 under ultracode - honest ledger incl. reconcile tax + infra failure).
- ANDROID_SERIAL routing in run-android-tests.sh (validate + export + all-device
  ambiguity guard incl. physical) + sim-lease.sh 'acquire android' emulator-
  serial lease (capacity = online count, race-safe under the select mutex,
  no silent set-e exit) -> a 2nd AVD unlocks width-2 Android dispatch.
  Self-tests extended: 10 routing cases + 6 android-lease cases, ALL PASS.
- rules 52/55 + dispatch/feature-workflow skills synced end-to-end (lease-by-
  platform, ANDROID_SERIAL in briefs/test gates/re-runs/cleanup, ledger device
  column) - 3-round Codex loop chased the propagated-consistency findings.

Audits: Codex gpt-5.5/high 3 rounds (R1 block: skill wiring + physical-device
ambiguity + set-e silent exit -> fixed; R2: rule 55 brief template -> fixed;
R3: lease-release wording + platform-routing summary -> fixed; 3-round cap
reached, remaining escalation = the PR review itself) + a 3-lens adversarial
workflow (fix-before-merge -> fixed) + a full 5-angle reason-grill of the
rationale (HOLDS-IF-NARROWED -> over-claims corrected in rule text: hindsight
counterfactual -> instrumented hypothesis; zero-wall-clock -> in-expectation;
'ONLY real gaps' -> 'gaps this session exposed').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant